﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SimpleServiceBus.Bus.MessageManagement
{
    [Serializable]
    public class MessageProcessingException : Exception
    {
        public MessageEnvelope FailedMessage;

        public MessageProcessingException(string errorMessage,Exception innerException,MessageEnvelope failedMessage):base(errorMessage,innerException)
        {
            FailedMessage = failedMessage;
        }
    }
}
